package com.dd.ent.car.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.pp.ent.base.log.MLog;

/**
 * Created by aqu-spring on 16/9/3.
 */
public abstract class BaseFragment extends com.pp.ent.base.BaseFragment {
    private final static String TAG="BaseFragment";
    protected View rootView;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        if (rootView == null) {
            MLog.debug(TAG, "onCreateView");
            rootView = super.onCreateView(inflater, container, savedInstanceState);
            init();
        }
        return rootView;
    }

    protected abstract void init();
}
